<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>PyramidChart.setGradientShading</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="PyramidChart.htm">PyramidChart</a>.<wbr>setGradientShading</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setGradientShading(double startBrightness, double endBrightness)
</div>
<p class="heading2">Description</p>
<div class="content">
Sets gradient shading mode.<br><br>
Gradient shading only applies to 2D and 3D pyramids, and 2D cones and funnels. 3D cones and funnels always use Phong lighting (see <a href="PyramidChart.setLighting.htm">PyramidChart.setLighting</a>).<br><br>
The gradient is specified with two brightness values at the gradient end points. A brightness less than 1 means the color is darkened, while a brightness greater than 1 means the color is brightened. For example, a brightness of 0.5 means the color is half as bright as the original color. If the original color is red, the color will become dark red. Conversely, a brightness of 2 means the color is twice as bright as the original color. If the original color is red, the color will become light red.<br><br>
For a pyramid or cone layer, the gradient is from left edge to the right edge. For a funnel chart, the gradient is from the right edge to the left edge.<br><br>
For a pyramid chart, this is the default coloring method. If this method is never called, the default brightness is from 0.75 to 2.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>startBrightness</td><td>(Mandatory)</td><td>The brightness at the starting point.</td></tr><tr><td>endBrightness</td><td>(Mandatory)</td><td>The brightness at the ending point.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
